package com.clkj.tramcarlibrary.aroundtaxi;


import com.clkj.tramcarlibrary.base.BasePresenter;
import com.clkj.tramcarlibrary.base.BaseView;
import com.clkj.tramcarlibrary.entity.AroundTaxiInfo;

import java.util.List;

/**
 * Created by Administrator on 2017/1/23.
 */

public class AroundTaxiContract {

    public interface View extends BaseView<Presenter>
    {
        void getAroundTaxiList(String curLon, String curLat);

        void onGetAroundTaxiListSuccess(List<AroundTaxiInfo> aroundTaxiInfos, int aroundTaxiCount);

        void onGetAroundTaxiListError(String tip);

        void showLoading();

        void dismissLoading();

    }

    public interface Presenter extends BasePresenter
    {

        /**
         * 获取周边的出租车
         * @param lon
         * @param lat
         * @param distance
         */
        void getAroundTaxiList(String lon, String lat, String radius);

    }

}
